package com.ghq.service.impl;

import com.ghq.mapper.LoginMapper;
import com.ghq.pojo.User;
import com.ghq.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    private final LoginMapper loginMapper;

    @Autowired
    public LoginServiceImpl(LoginMapper loginMapper) {
        this.loginMapper = loginMapper;
    }

    @Override
    public User getUsernameAndPassword(String username, String password) {
        return loginMapper.getUsernameAndPassword(username, password);
    }
}
